from flask import Flask,session
from info import create_app,db,models
from flask_migrate import Migrate,MigrateCommand
from flask_script import Manager

# 根据不同配置信息的key，获取不同的配置信息
app = create_app("develop")

# app = create_app()

# 创建manage对象
manage = Manager(app)

# 使用manage关联app和db
Migrate(app,db)

# 使用manage添加操作命令
manage.add_command("db",MigrateCommand)

if __name__ == '__main__':

    manage.run()
